package com.ticket.sass.provider.dto.input.admin;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 管理员修改输入
 * @author ywb
 * @date 2021-11-26 13:46
 */
@Data
@ApiModel(value = "管理员修改输入DTO", description = "按照要求填写")
public class AdminUpdInput {
    @NotNull(message = "id 不能为空")
    @ApiModelProperty(value = "id", required = true)
    private Integer id;
    
    @NotBlank(message = "登录名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @ApiModelProperty(value = "密码 为空代表不修改")
    private String password;
    
    @ApiModelProperty(value = "启用状态")
    private Boolean enable;
}
